<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Pro Control</title>
<?
	global $kam_admin, $FullUrl;
	$kam_admin = './kam/admin/';
    //$FullUrl = 'http://localhost/SourceMau/';
?>
<link href="<?=$kam_admin?>css/layout.css" rel="stylesheet" type="text/css" />
<link href="<?=$kam_admin?>css/wysiwyg.css" rel="stylesheet" type="text/css" />
<!-- Theme Start -->
<link href="<?=$kam_admin?>css/themes/blue/styles.css" rel="stylesheet" type="text/css" />
<!-- Theme End -->


<script type="text/javascript" src='<?=$FullUrl?>/js/mootools.js'></script>
<!--<script type='text/javascript' src='<?=$kam_admin?>js/online/jquery-1.7.2.min.js'></script>-->


<script type="text/javascript">
	//no conflict jquery
	var jQuery = window.jQuery.noConflict();
	//jQuery.noConflict();
</script>
<script type="text/javascript" src='<?=$FullUrl?>/js/function.js'></script>
</head>
<body id="homepage">
<div id="header"> <a href="" title=""><img src="<?=$kam_admin?>images/cp_logo.png" alt="Control Panel" class="logo" /></a>
  <?php Template::UserControlAD('Search'); ?>
</div>

<!-- Top Breadcrumb Start -->
<div id="breadcrumb">
	
  <ul>
  	<li><a href="javascript:history.back()"><p class="back-history"></p></a></li>
    <li><img src="<?=$kam_admin?>images/icons/icon_breadcrumb.png" alt="Location" /></li>
    <li><strong>Location:</strong></li>
    <li><a href="#" title="">Sub Section</a></li>
    <li>/</li>
    <li class="current">Control Panel</li>
  </ul>
</div>
<!-- Top Breadcrumb End --> 

<!-- Right Side/Main Content Start -->
<div id="rightside">
  <?// Template::UserControlAD('Status'); ?>
  <?// Template::UserControlAD('Usage'); ?>
  
  <?
  	//echo $do;
	//echo $act;
	
	$file_tpl = "./kam/modules/".$do."/admin/".$tpl.".ctp";
	
	if(file_exists($file_tpl))
	{
		include($file_tpl); 	
	}
	else
	{
		echo "<br/>Page is not available";		
	}
  ?>
  <?// Template::UserControlAD('Graphs'); ?>
  <?// Template::UserControlAD('HeadingsList'); ?>
  <?// Template::UserControlAD('HeadingsEdit'); ?>
  <div style="clear:both;"></div>
  <?// Template::UserControlAD('Notice'); ?>
  <?php Template::UserControlAD('CopyRight'); ?>
</div>
<!-- Right Side/Main Content End --> 

<!-- Left Dark Bar Start -->
<div id="leftside">
  <?php Template::UserControlAD('User'); ?>
  <?php Template::UserControlAD('Notifications'); ?>
  <?php if($act != 'add_full' && $act != 'edit_full') Template::UserControlAD('Menu'); ?>
</div>
<!-- Left Dark Bar End --> 

<script type="text/javascript" src="<?=$kam_admin?>js/online/enhance.js"></script> 
<script type='text/javascript' src='<?=$kam_admin?>js/online/excanvas.js'></script> 
<?
	//echo $act;
	if($act != 'add_full' && $act != 'edit_full')
	{
?>
<script type='text/javascript' src='<?=$kam_admin?>js/online/jquery.min.js'></script> 

<?
	}
?>
<script type='text/javascript' src='<?=$kam_admin?>js/online/jquery-ui.min.js'></script> 
<script type='text/javascript' src='<?=$kam_admin?>js/jquery.wysiwyg.js'></script> 
<script type='text/javascript' src='<?=$kam_admin?>js/visualize.jQuery.js'></script> 
<script type="text/javascript" src='<?=$kam_admin?>js/functions.js'></script>


<!--[if IE 6]>
    <script type='text/javascript' src='scripts/png_fix.js'></script>
    <script type='text/javascript'>
      DD_belatedPNG.fix('img, .notifycount, .selected');
    </script>
    <![endif]-->
</body>
</html>
